mac:
	GOOS=darwin go build -ldflags="-s -w" -o main main.go
	$(if $(shell command -v upx), upx ginctl-darwin)

win:
	GOOS=windows go build -ldflags="-s -w" -o main.exe main.go
	$(if $(shell command -v upx), upx ginctl.exe)

linux:
	GOOS=linux go build -ldflags="-s -w" -o main-linux main.go
	$(if $(shell command -v upx), upx ginctl-linux)